import Vue from 'vue';

var commonDialog;

// 创建普通提示框
function createConfirmDialog(commonData, Vue2Filters) {
    Vue.use(Vue2Filters);

    commonDialog = new Vue({
        el: "#confirmDialog",
        data: {
            commonData: commonData,
            loanAmoun: "",
            stage: "",
            eachPay: "",
            skcard: "",
            xykno: ""
        },
        methods: {
            "submitInfo": function() {
                $.publish("submitInfo");
            },
            "backInfo": function() {
                commonData.showDialog = 0;
                commonData.step = 4;
            }
        }
    });

    return commonDialog;
}


module.exports = {
    createConfirmDialog: createConfirmDialog
}